from apps.baseData import districts, provinces, citys
from apps.baseData.models import Province, District, City

# pros = []
# for i, v in enumerate(provinces):
#     pros.append(Province(id=v[0], name=v[1]))
#     Province.objects.bulk_create(pros)

# for inx, i in enumerate(citys):
#     City(name=i[0], city_index=i[1], province=Province.objects.get(id=i[2])).save()
for inx, i in enumerate(districts):
    District(name=i[1], city=City.objects.get(id=i[2])).save()
